x86/mm/shadow: make it build with !CONFIG_HVM
authorWei Liu <wei.liu2@citrix.com>
Thu, 16 Aug 2018 10:05:34 +0000 (11:05 +0100)
committerWei Liu <wei.liu2@citrix.com>
Sun, 26 Aug 2018 10:01:03 +0000 (11:01 +0100)
commit29ac2ad612e20904d0e8914e635386b7abe0f656
tree8ef7defea0c54c56a1fb6b17e15483a78cb68845
parentf0f14cc27744ad65c08a2a9b594c9048d289405c
x86/mm/shadow: make it build with !CONFIG_HVM

Enclose HVM only emulation code under CONFIG_HVM. Add some BUG()s to
to catch any issue.

Note that although some code checks is_hvm_*, which hints it can be
called for PV as well, I can't find such paths.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Tim Deegan <tim@xen.org>
xen/arch/x86/mm/shadow/common.c
xen/arch/x86/mm/shadow/multi.c